namespace OneWorks.Utils.FluentData
{
    using System;

    public class ErrorEventArgs : EventArgs
    {
        public System.Data.IDbCommand Command { get; private set; }
        public Exception Exception { get; set; }

        public ErrorEventArgs(System.Data.IDbCommand command, Exception exception)
        {
            this.Command = command;
            this.Exception = exception;
        }
    }
}